<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<title>OpenCV: cv::viz::Mesh Class Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon" />
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../tutorial-utils.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
   &#160;<span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../d9/d62/namespacecv_1_1viz.html">viz</a></li><li class="navelem"><a class="el" href="../../dc/d4f/classcv_1_1viz_1_1Mesh.html">Mesh</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="../../d2/d76/classcv_1_1viz_1_1Mesh-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cv::viz::Mesh Class Reference<div class="ingroups"><a class="el" href="../../d1/d19/group__viz.html">3D Visualizer</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>This class wraps mesh attributes, and it can load a mesh from a ply file. :  
 <a href="../../dc/d4f/classcv_1_1viz_1_1Mesh.html#details">More...</a></p>

<p><code>#include &lt;opencv2/viz/types.hpp&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a362ac4f9e53873aaf6290a017f8f7f86"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom">{ <br />
&#160;&#160;<a class="el" href="../../dc/d4f/classcv_1_1viz_1_1Mesh.html#a362ac4f9e53873aaf6290a017f8f7f86abc0ec20ee29622eb7d340b8da60c644f">LOAD_AUTO</a> = 0, 
<br />
&#160;&#160;<a class="el" href="../../dc/d4f/classcv_1_1viz_1_1Mesh.html#a362ac4f9e53873aaf6290a017f8f7f86a7874520d2defcbccddf5032359171385">LOAD_PLY</a> = 1, 
<br />
&#160;&#160;<a class="el" href="../../dc/d4f/classcv_1_1viz_1_1Mesh.html#a362ac4f9e53873aaf6290a017f8f7f86ac0b9804b46088d052fc6ea4aff94ed7b">LOAD_OBJ</a> = 2
<br />
 }</td></tr>
<tr class="separator:a362ac4f9e53873aaf6290a017f8f7f86"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aaab0596b508aad1759025f6483ddd8d6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d4f/classcv_1_1viz_1_1Mesh.html#aaab0596b508aad1759025f6483ddd8d6">Mesh</a> ()</td></tr>
<tr class="separator:aaab0596b508aad1759025f6483ddd8d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a54407fef69977bb6344f0ec2e3678083"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="../../dc/d4f/classcv_1_1viz_1_1Mesh.html">Mesh</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d4f/classcv_1_1viz_1_1Mesh.html#a54407fef69977bb6344f0ec2e3678083">load</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;file, int type=<a class="el" href="../../dc/d4f/classcv_1_1viz_1_1Mesh.html#a362ac4f9e53873aaf6290a017f8f7f86a7874520d2defcbccddf5032359171385">LOAD_PLY</a>)</td></tr>
<tr class="memdesc:a54407fef69977bb6344f0ec2e3678083"><td class="mdescLeft">&#160;</td><td class="mdescRight">Loads a mesh from a ply or a obj file.  <a href="#a54407fef69977bb6344f0ec2e3678083">More...</a><br /></td></tr>
<tr class="separator:a54407fef69977bb6344f0ec2e3678083"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a2719f6673412252b5539191b5d8db580"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d4f/classcv_1_1viz_1_1Mesh.html#a2719f6673412252b5539191b5d8db580">cloud</a></td></tr>
<tr class="memdesc:a2719f6673412252b5539191b5d8db580"><td class="mdescLeft">&#160;</td><td class="mdescRight">point coordinates of type CV_32FC3 or CV_64FC3 with only 1 row  <a href="#a2719f6673412252b5539191b5d8db580">More...</a><br /></td></tr>
<tr class="separator:a2719f6673412252b5539191b5d8db580"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a836d38fde4eb6f42ebfa9b1772d96ffe"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d4f/classcv_1_1viz_1_1Mesh.html#a836d38fde4eb6f42ebfa9b1772d96ffe">colors</a></td></tr>
<tr class="memdesc:a836d38fde4eb6f42ebfa9b1772d96ffe"><td class="mdescLeft">&#160;</td><td class="mdescRight">point color of type CV_8UC3 or CV_8UC4 with only 1 row  <a href="#a836d38fde4eb6f42ebfa9b1772d96ffe">More...</a><br /></td></tr>
<tr class="separator:a836d38fde4eb6f42ebfa9b1772d96ffe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa1bf8f104bc7f0cfefc2bd2e38495f9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d4f/classcv_1_1viz_1_1Mesh.html#afa1bf8f104bc7f0cfefc2bd2e38495f9">normals</a></td></tr>
<tr class="memdesc:afa1bf8f104bc7f0cfefc2bd2e38495f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">point normals of type CV_32FC3, CV_32FC4, CV_64FC3 or CV_64FC4 with only 1 row  <a href="#afa1bf8f104bc7f0cfefc2bd2e38495f9">More...</a><br /></td></tr>
<tr class="separator:afa1bf8f104bc7f0cfefc2bd2e38495f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4482e5c832f2bd24bb697c340eaf853"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d4f/classcv_1_1viz_1_1Mesh.html#ac4482e5c832f2bd24bb697c340eaf853">polygons</a></td></tr>
<tr class="memdesc:ac4482e5c832f2bd24bb697c340eaf853"><td class="mdescLeft">&#160;</td><td class="mdescRight">CV_32SC1 with only 1 row.  <a href="#ac4482e5c832f2bd24bb697c340eaf853">More...</a><br /></td></tr>
<tr class="separator:ac4482e5c832f2bd24bb697c340eaf853"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5f1cca70c5913a8e224bc668d7f836c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d4f/classcv_1_1viz_1_1Mesh.html#ae5f1cca70c5913a8e224bc668d7f836c">tcoords</a></td></tr>
<tr class="memdesc:ae5f1cca70c5913a8e224bc668d7f836c"><td class="mdescLeft">&#160;</td><td class="mdescRight">CV_32FC2 or CV_64FC2 with only 1 row.  <a href="#ae5f1cca70c5913a8e224bc668d7f836c">More...</a><br /></td></tr>
<tr class="separator:ae5f1cca70c5913a8e224bc668d7f836c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16b20bbdb9d830145c6c079639cad0fd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d4f/classcv_1_1viz_1_1Mesh.html#a16b20bbdb9d830145c6c079639cad0fd">texture</a></td></tr>
<tr class="separator:a16b20bbdb9d830145c6c079639cad0fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This class wraps mesh attributes, and it can load a mesh from a ply file. : </p>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a362ac4f9e53873aaf6290a017f8f7f86"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a362ac4f9e53873aaf6290a017f8f7f86">&#9670;&nbsp;</a></span>anonymous enum</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">anonymous enum</td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a362ac4f9e53873aaf6290a017f8f7f86abc0ec20ee29622eb7d340b8da60c644f"></a>LOAD_AUTO&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a362ac4f9e53873aaf6290a017f8f7f86a7874520d2defcbccddf5032359171385"></a>LOAD_PLY&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a362ac4f9e53873aaf6290a017f8f7f86ac0b9804b46088d052fc6ea4aff94ed7b"></a>LOAD_OBJ&#160;</td><td class="fielddoc"></td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="aaab0596b508aad1759025f6483ddd8d6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaab0596b508aad1759025f6483ddd8d6">&#9670;&nbsp;</a></span>Mesh()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">cv::viz::Mesh::Mesh </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a54407fef69977bb6344f0ec2e3678083"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a54407fef69977bb6344f0ec2e3678083">&#9670;&nbsp;</a></span>load()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../dc/d4f/classcv_1_1viz_1_1Mesh.html">Mesh</a> cv::viz::Mesh::load </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;&#160;</td>
          <td class="paramname"><em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>type</em> = <code><a class="el" href="../../dc/d4f/classcv_1_1viz_1_1Mesh.html#a362ac4f9e53873aaf6290a017f8f7f86a7874520d2defcbccddf5032359171385">LOAD_PLY</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Loads a mesh from a ply or a obj file. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">file</td><td>File name </td></tr>
    <tr><td class="paramname">type</td><td>File type (for now only PLY and OBJ are supported)</td></tr>
  </table>
  </dd>
</dl>
<p>File type** can be one of the following:</p><ul>
<li><b>LOAD_PLY</b></li>
<li><b>LOAD_OBJ</b> </li>
</ul>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a2719f6673412252b5539191b5d8db580"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2719f6673412252b5539191b5d8db580">&#9670;&nbsp;</a></span>cloud</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::viz::Mesh::cloud</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>point coordinates of type CV_32FC3 or CV_64FC3 with only 1 row </p>

</div>
</div>
<a id="a836d38fde4eb6f42ebfa9b1772d96ffe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a836d38fde4eb6f42ebfa9b1772d96ffe">&#9670;&nbsp;</a></span>colors</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::viz::Mesh::colors</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>point color of type CV_8UC3 or CV_8UC4 with only 1 row </p>

</div>
</div>
<a id="afa1bf8f104bc7f0cfefc2bd2e38495f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afa1bf8f104bc7f0cfefc2bd2e38495f9">&#9670;&nbsp;</a></span>normals</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::viz::Mesh::normals</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>point normals of type CV_32FC3, CV_32FC4, CV_64FC3 or CV_64FC4 with only 1 row </p>

</div>
</div>
<a id="ac4482e5c832f2bd24bb697c340eaf853"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac4482e5c832f2bd24bb697c340eaf853">&#9670;&nbsp;</a></span>polygons</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::viz::Mesh::polygons</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>CV_32SC1 with only 1 row. </p>
<p>Raw integer list of the form: (n,id1,id2,...,idn, n,id1,id2,...,idn, ...) where n is the number of points in the polygon, and id is a zero-offset index into an associated cloud. </p>

</div>
</div>
<a id="ae5f1cca70c5913a8e224bc668d7f836c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae5f1cca70c5913a8e224bc668d7f836c">&#9670;&nbsp;</a></span>tcoords</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::viz::Mesh::tcoords</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>CV_32FC2 or CV_64FC2 with only 1 row. </p>

</div>
</div>
<a id="a16b20bbdb9d830145c6c079639cad0fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a16b20bbdb9d830145c6c079639cad0fd">&#9670;&nbsp;</a></span>texture</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::viz::Mesh::texture</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>opencv2/viz/<a class="el" href="../../d3/d0e/contrib_2modules_2viz_2include_2opencv2_2viz_2types_8hpp.html">types.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:49 for OpenCV by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
